import Layout from '@/layout'

export default {
    path: '/setting',
    component: Layout,
    redirect: '/setting/sys/index',
    name: 'setting',
    meta: {
        title: '设置',
        icon: 'sidebar-menu'
    },
    children: [
        {
            path: 'sys/index',
            name: 'settingIndex',
            component: () => import(/* webpackChunkName: 'shop' */ '@/views/setting/sys/index'),
            meta: {
                title: '系统设置'
            }
        },
        {
            path: 'user/list',
            name: 'settingUser',
            component: () => import(/* webpackChunkName: 'shop' */ '@/views/setting/user/list'),
            meta: {
                title: '角色设置'
            }
        }, {
            path: 'user/add',
            name: 'settingUserAdd',
            component: () => import(/* webpackChunkName: 'shop' */ '@/views/setting/user/add'),
            meta: {
                title: '新增角色',
                sidebar: false,
                activeMenu: '/setting/user/list'
            }
        }
    ]
}
